/*
 *  txdnet.cn tonydon
 * 
 */
package cn.txdnet.txcms.query;

import cn.txdnet.txcms.dict.BooleanType;

/**
 *
 * @author txdnet
 */
public class ViewEventsQuery extends BaseQuery {

    private static final long serialVersionUID = 6212270464150449870L;
    
    private Integer id;
    
    private Long currtime;
    
    private Byte pubstate;

    @Override
    public void filter() {
        this.currtime = System.currentTimeMillis();
        this.pubstate = BooleanType.TRUE.getValue();
    }

    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return the currtime
     */
    public Long getCurrtime() {
        return currtime;
    }

    /**
     * @param currtime the currtime to set
     */
    public void setCurrtime(Long currtime) {
        this.currtime = currtime;
    }

    /**
     * @return the pubstate
     */
    public Byte getPubstate() {
        return pubstate;
    }

    /**
     * @param pubstate the pubstate to set
     */
    public void setPubstate(Byte pubstate) {
        this.pubstate = pubstate;
    }
}
